import request from '@/utils/request'

const api_name = '/admin/activity/activityInfo'
import {call} from "@/utils/rpc";
export default {

  getPageList(page, limit) {
    return call("admin/activity/activityInfo/list",{page,limit})
  },
  getById(id) {
    return call("admin/activity/activityInfo/getById",{_id:id})
  },

  save(role) {
    return call("admin/activity/activityInfo/save",role)
  },

  updateById(role) {
    return call("admin/activity/activityInfo/update",role)
  },
  removeById(id) {
    return call("admin/activity/activityInfo/delete",[id])
  },
  removeRows(idList) {
    return call("admin/activity/activityInfo/delete",idList)
  },

  findActivityRuleList(id) {
    return call("admin/activity/activityInfo/findActivityRuleList",{_id:id})
  },
  saveActivityRule(rule) {
    return call("admin/activity/activityInfo/saveActivityRule",rule)
  },

  findSkuInfoByKeyword(keyword) {
    return call("admin/activity/activityInfo/findSkuInfoByKeyword",{keyword})
  }
}
